<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
 * 分类
 */
class Sort extends CI_Controller {

    public function __construct() {
        parent::__construct();
        $this->load->model('sort_mdl');
    }

    /**
     * ajax查询下级分类
     */
    public function getsort(){
        $id = $this->input->post('sid',TRUE);
        if(is_numeric($id) && $this->input->is_ajax_request()){
            $res = $this->sort_mdl->getf($id);
            echo json_encode($res);
        }else{
            redirect(site_url('admini/sort'));
        }
    }
    

}

/* End of file Sort.php */
/* Location: ./application/controllers/shops/Sort.php */